package com.cloudlead.common.lang.service;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.cloudlead.common.lang.SimpleModule;
import com.cloudlead.common.lang.BusinessModule;

public abstract class AbstractBaseService extends SimpleModule implements
		Service {

	protected final Logger logger = LoggerFactory.getLogger(this.getClass());

	public AbstractBaseService(BusinessModule module) {
		super(module);
	}

	@PostConstruct
	public void init() {
		logger.debug(getClass().getSimpleName() + " starting...");
	}

	@PreDestroy
	public void destroy() {
		logger.debug(getClass().getSimpleName() + " stopped.");
	}
}
